package com.demo.spring.enable.async2.test;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import com.demo.spring.enable.async2.core.EnableTracerAsync;

@Component
@EnableTracerAsync
public class Student {

	@Async
	public void say() {
		System.out.println(Thread.currentThread().getName());
	}

	@Async
	public void say(String s) {
		System.out.println(Thread.currentThread().getName() + ", " + s);
	}

}
